package com.offcn.controller;


import com.offcn.service.MemberService;
import com.offcn.utils.Result;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xinyi
 * @since 2021-07-14
 */
@RestController
@RequestMapping("/member")
public class MemberController {

    @Reference
    private MemberService memberService;

    /*每个月注册会员数量统计*/
    @RequestMapping("/r_getMemberReport")
    public Result getMemberReport(){
        return memberService.getMemberReport();
    }

    /*获取运营数据*/
    @RequestMapping("/r_getBusinessReportData")
    public Result r_getBusinessReportData(){
        return memberService.r_getBusinessReportData();
    }

    /*导出运营数据为excel*/
//    @RequestMapping("/r_exportBusinessReport")



}

